//
//  WQTabBar.m
//  WeiBo(OC)
//
//  Created by Xmen on 16/9/20.
//  Copyright © 2016年 111. All rights reserved.
//

#import "WQTabBar.h"

@interface WQTabBar () <WQTabBarDelegate>
@property (weak, nonatomic) UIButton *composeButton;

@end

@implementation WQTabBar



//- (instancetype)initWithFrame:(CGRect)frame{
//    
//    [self setupUI];
//}
//- (void)awakeFromNib{
//    
//    
//    [self setupUI];
//}


- (void)setupUI{
    [_composeButton addTarget:self action:@selector(composeButtonAction) forControlEvents:UIControlEventTouchUpInside];
    
    [_composeButton.imageView setImage:@"tabbar_compose_icon_add"];
    [_composeButton.imageView setHighlightedImage:@"tabbar_compose_icon_add_highlighted"];
    
    [_composeButton setBackgroundImage:@"tabbar_compose_button" forState:0];
    [_composeButton setBackgroundImage:@"tabbar_compose_button_highlighted" forState:1];
    
    [_composeButton sizeToFit];
    
    
    self.backgroundImage = [UIImage imageNamed:@"tabbar_background"];
    [self addSubview:_composeButton];
}

- (void)composeButtonAction{
//    [];
}
@end
